public class code {
    public static boolean ZhaoXiaoSan(int[] arr){
        int count = 0;
        for(int i = 0 ; i < arr.length;i++){
            count = 0;
            if(arr[i] % 2 == 1){
              for(int j = i ;j < arr.length - i;j++){
                  if(arr[j] % 2 == 1){
                      count ++;
                  }
              }
              if(count == 2){
                  return true;
              }
            }
        }
        return false;
    }
    public static void main(String[] args) {
        int[] arr1 = {2, 6, 4, 1};
        int[] arr2 = {1, 2, 34, 3, 4, 5, 7, 23, 12};
        System.out.println(ZhaoXiaoSan(arr1));
        System.out.println(ZhaoXiaoSan(arr2));
    }
}
